package com.fulihui.wgj.facade.service.reply;

import com.fulihui.common.error.InvokeServiceException;
import com.fulihui.common.request.rpc.AppRequest;
import com.fulihui.common.request.rpc.PageAppRequest;
import com.fulihui.common.result.rpc.BaseResult;
import com.fulihui.common.result.rpc.SimpleResult;
import com.fulihui.wgj.facade.dto.WxSubscribeReplyAdvertDTO;
import com.fulihui.wgj.facade.request.PrimaryKeyRequest;
import com.fulihui.wgj.facade.request.reply.WxSubscribeReplyAdvertSaveRequest;
import com.fulihui.wgj.facade.result.reply.WxSubsribeAdvertPageResult;

import java.util.List;

/**
 * 回复规则广告库Service
 *
 * @author wang_wx
 * @date 2018-07-30
 */
public interface WxSubscribeAdverseService {

    /**
     * 查询广告库
     *
     * @param request
     * @return
     * @throws InvokeServiceException
     */
    SimpleResult<List<WxSubscribeReplyAdvertDTO>> queryAdvert(AppRequest request) throws InvokeServiceException;

    /**
     * 查询广告库-分页
     *
     * @param request
     * @return
     * @throws InvokeServiceException
     */
    WxSubsribeAdvertPageResult pageQueryAdvert(PageAppRequest request) throws InvokeServiceException;

    /**
     * 根据主键查询广告
     *
     * @param request
     * @return
     * @throws InvokeServiceException
     */
    SimpleResult<WxSubscribeReplyAdvertDTO> queryAdvert(PrimaryKeyRequest request) throws InvokeServiceException;

    /**
     * 根据ID删除用户关注回复
     *
     * @param request
     * @return
     * @throws InvokeServiceException
     */
    BaseResult deleteReplyAdvertById(PrimaryKeyRequest request) throws InvokeServiceException;

    /**
     * 保存回复规则
     *
     * @param request
     * @return
     * @throws InvokeServiceException
     */
    BaseResult saveReplyRule(WxSubscribeReplyAdvertSaveRequest request) throws InvokeServiceException;
}
